home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / oad11.zip / OAD.BAT next >
DOS Batch File  |  1991-06-26  |  1KB  |  82 lines

  1. @Echo Off
  2.  
  3. if "%1"=="" goto end2
  4. if "%1"=="D" goto Daily
  5. goto Param2
  6.  
  7. :Daily
  8. REM Place DAILY programs here if you want the daily
  9. REM programs running BEFORE the montly and weekly programs.
  10. ECHO DAILY
  11.  
  12. :Param2
  13. if "%2"=="" goto End1
  14. if "%2"=="N" goto Param3
  15. if %2==0 goto Sun
  16. if %2==1 goto Mon
  17. if %2==2 goto Tue
  18. if %2==3 goto Wed
  19. if %2==4 goto Thu
  20. if %2==5 goto Fri
  21. if %2==6 goto Sat
  22. goto param3
  23.  
  24. :Sun
  25. REM Place weekly SUNDAY programs here
  26. ECHO SUNDAY
  27. goto param3
  28.  
  29. :Mon
  30. REM Place weekly MONDAY programs here
  31. ECHO MONDAY
  32. goto param3
  33.  
  34. :Tue
  35. REM Place weekly TUESDAY programs here
  36. ECHO TUESDAY
  37. goto param3
  38.  
  39. :Wed
  40. REM Place weekly WEDNESDAY programs here
  41. ECHO WEDNESDAY
  42. goto param3
  43.  
  44. :Thu
  45. REM Place weekly THURSDAY programs here
  46. ECHO THURSDAY
  47. goto param3
  48.  
  49. :Fri
  50. REM Place weekly FRIDAY programs here
  51. ECHO FRIDAY
  52. goto param3
  53.  
  54. :Sat
  55. REM Place weekly SATURDAY programs here
  56. ECHO SATURDAY
  57.  
  58. :Param3
  59. if "%3"=="" goto End1
  60. if "%3"=="M" goto Monthly
  61. goto End1
  62.  
  63. :Monthly
  64. REM Place MONTHLY programs here
  65. ECHO MONTHLY
  66.  
  67. :End1
  68. if "%1"=="D" goto daily2
  69. goto End2
  70.  
  71. :Daily2
  72. REM Place DAILY programs here also, if you want them to execute
  73. REM after the weekly and monthly programs have run.
  74. ECHO DAILY2
  75.  
  76. :End2
  77.  
  78. REM You can delete all the ECHO lines, as they are there for
  79. REM demonstration purposes.  Delete the REM lines if you have
  80. REM all this figured out.
  81.  
  82.